    <aside class="widget animated fast fadeIn" data-showonscroll="true" data-animation="fadeIn">
            <div class="widget-title clearfix">
                    <h3>Tags</h3>
                    <div class="sep-widget"></div>
                        </div>

                        <div class="widget-content clearfix">
                            <div class="tags-cloud clearfix">
                                <?php foreach ($tagname as $key => $value) {
                                ?>
                                <a href="#"><?php echo $value['name'];?><span class="badge"><?php echo $value['id'];?></span></a>
                                <!--<a href="#">President<span class="badge">10</span></a>
                                <a href="#">Morsi<span class="badge">15</span></a>
                                <a href="#">Coup<span class="badge">13</span></a>-->
                                <?php
                                 } ?>
                            </div>
            </div>
    </aside>